package org.ypx.center.controller;

import org.ypx.shared.common.Result;

import java.util.List;

/**
 * @author Yan Peixuan
 * @date 2017/3/28 21:06
 * @description
 */
public interface BaseController<T> {
    //    Result<List<T>> selectByKey(Object key);
    Result<List<T>> save(T entity);

    Result<List<T>> delete(T entity);

//    Result<List<T>> updateAll(T entity);

    Result<List<T>> updateNotNull(T entity);

//    List<T> selectByExample(Object example);

//    List<T> selectByUser(Object example, int page, int rows);

    Result<List<T>> select(T entity);
}
